home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3479 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.7 KB  |  43 lines

  1. Newsgroups: comp.lang.c++
  2. Path: merlin.hgc.edu!weat4122
  3. From: weat4122@hgc.edu (gerard weatherby)
  4. Subject: Re: Automatic data segment ???
  5. Message-ID: <1996Jan24.042823.29086@merlin.hgc.edu>
  6. Sender: usenet@merlin.hgc.edu (Action News Central)
  7. Organization: The Hartford Graduate Center
  8. References: <NEWTNews.822036255.26727.danipear@dialup.netvision.net.il> <4dun33$agf@news.cyberportal.net>
  9. Date: Wed, 24 Jan 1996 04:28:23 GMT
  10.  
  11. In article <4dun33$agf@news.cyberportal.net> dtrues <204.97.234.41> writes:
  12. >Dani Pear <danipear@netvision.net.il> wrote:
  13. >>
  14. >>Hi,
  15. >>In our windows application that is in C++, we can not
  16. >>link and create an EXE, and we receive the following 
  17. >>message: "Automatic data segment exceeds 64K".
  18. >>What are the reasons for this error.
  19. >>
  20. >>Email : danipear@netvision.net.il
  21. >>
  22. >
  23. >
  24. >We have run into the same problem.  It seems that you are only allowed 
  25. >64K of space for the heap, stack, and all of the automatic variables used 
  26. >in the code (or something to that effect).  Keep in mind that an array of 
  27. >classes can tie up memory quickly.  We get around that by dynamically 
  28. >allocating most of our classes.  We use the large memory model and 
  29. >nothing but far pointers.  (You will need to use far pointers, 
  30. >otherwise you will be allocating memory from the local heap, which 
  31. >tends to fill up pretty quickly.  We have developed a library that will 
  32. >allow us to use more than the 640K memory on todays computers.  The 
  33. >method is described in Peter Norton and Pal Yao's book on windows 
  34. >programming.
  35. >
  36. >Good luck and get out of Bill's 16-bit environment as soon as possible.
  37. >
  38. >Dan
  39. >
  40.  
  41. If you're using Visual C++ 1.52, look into the eliminate duplicate 
  42. strings switch /Gf, I think, and the /Gt automatic far data switches.
  43.